import { TableColumns } from "@/components/layout/table/table-columns";
import { FORMAT, NUMBER } from "@/utils/enums/type-enums";

/**
 * 床位列表
 */
export const headerColumns: TableColumns[] = [
    {
        type: NUMBER,
        label: '序号'
    },
    {
        label: '机构名称',
        name: 'name',
        width: 200,
    },
    {
        label: '机构编码',
        name: 'code',
        width: 200,
    },
    {
        type: 'format',
        label: '启用状态',
        name: 'status',
        value: [{ label: '启用', value: 1 }, { label: '禁用', value: 0 }]
    },
    {
        label: '联系人',
        name: 'contact',
        width: 200,
    },
    {
        label: '联系电话',
        name: 'phone',
        width: 200,
    },
    {
        label: '添加人',
        name: 'addUserName',
        width: 200,
    },
    {
        label: '添加时间',
        name: 'addTime',
        width: 200,
    },
    {
        label: '操作',
        type: 'custom',
        align: 'center',
        buttons: [
            { method: 'edit', text: '编辑' },
        ]
    },
]